{extend name="public/header" /}
{block name="body"}
<body>
{include file="public/common" /}
<fieldset class="layui-elem-field site-demo-button" style="padding:10px;">
<div class="container-fluid larry-wrapper">
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
            <section class="panel panel-padding">
                <form id="form1" class="layui-form layui-form-pane" action="{:url('')}">
					<div class="layui-tab" lay-filter="test">
						<ul class="layui-tab-title">
							<li class="layui-this" lay-id="11">七牛配置</li>
							<li lay-id="22">普通配置</li>
						</ul>
						<div class="layui-tab-content">
							<div class="layui-tab-item layui-show">
								<section class="panel panel-padding">
									<div class="layui-form-item">
										<label class="layui-form-label">accessKey</label>
										<div class="layui-input-inline">
											<input type="text" name="qn_ak" value="{$info.qn_ak|default=''}" class="layui-input" style='width:500px;'>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">secretKey</label>
										<div class="layui-input-inline">
											<input type="text" name="qn_sk" value="{$info.qn_sk|default=''}" class="layui-input" style='width:500px;'>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">上传空间</label>
										<div class="layui-input-inline">
											<input type="text" name="qn_bucket" value="{$info.qn_bucket|default=''}" class="layui-input">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">绑定域名</label>
										<div class="layui-input-inline">
											<input type="text" name="qn_domain" value="{$info.qn_domain|default=''}" class="layui-input" style='width:500px;'>
										</div>
									</div>
								</section>
							</div>
							<div class="layui-tab-item">
								<section class="panel panel-padding">
									<div class="layui-form-item">
										<label class="layui-form-label">文件大小</label>
										<div class="layui-input-inline">
											<input type="text" name="upload_size" value="{$info.upload_size|default=''}" class="layui-input">
										</div>
										<div class="layui-form-mid layui-word-aux">最大允许上传图片大小 M</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">文件类型</label>
										<div class="layui-input-block">
											<input type="text" name="upload_exts" value="{$info.upload_exts|default=''}" class="layui-input">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">重绘上传图</label>
										<div class="layui-input-inline">
											<input type="radio" name="thumb_status" {eq name="info.thumb_status" value="1"}checked{/eq} title="开启" value="1" checked />
											<input type="radio" name="thumb_status" {eq name="info.thumb_status" value="2"}checked{/eq} title="关闭" value="2" />
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">图片尺寸宽</label>
										<div class="layui-input-inline">
											<input type="text" name="thumb_width" value="{$info.thumb_width|default=''}" class="layui-input">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">图片尺寸高</label>
										<div class="layui-input-inline">
											<input type="text" name="thumb_height" value="{$info.thumb_height|default=''}" class="layui-input">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">水印位置</label>
										<div class="layui-input-inline">
											<select jq-error="请选择" lay-filter="water_position" name="water_position">
												<option value="">请选择</option>
												<option value="1" {if condition="$info.water_position eq 1"}selected{/if}>左上</option>
												<option value="2" {if condition="$info.water_position eq 2"}selected{/if}>左下</option>
												<option value="3" {if condition="$info.water_position eq 3"}selected{/if}>右上</option>
												<option value="4" {if condition="$info.water_position eq 4"}selected{/if}>右下</option>
												<option value="5" {if condition="$info.water_position eq 5"}selected{/if}>中间</option>
											</select>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">水印类型</label>
										<div class="layui-input-inline">
											<input type="radio" name="water_status" {eq name="info.water_status" value="1"}checked{/eq} title="文字" value="1" checked />
											<input type="radio" name="water_status" {eq name="info.water_status" value="2"}checked{/eq} title="图片" value="2" />
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">水印</label>
										<div class="layui-input-inline">
											<input type="text" name="water_image" value="{$info.water_image|default=''}" class="layui-input">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">图片前缀</label>
										<div class="layui-input-inline">
											<input type="text" name="water_prefix" value="{$info.water_prefix|default=''}" class="layui-input">
										</div>
									</div>
								</section>
							</div>
						</div>
					</div>					
                    <div class="layui-input-block">
						<input type="hidden" name="id" type="hidden" value="{$info.id|default=''}">
                        <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </form>
            </section>
        </div>
    </div>
</div>
</fieldset>
</body>
{/block}
{block name="script"}
<script>
    layui.use('pageform');
</script>
{/block}